package com.sunny.fetch.pojo;

import javax.persistence.*;

@Table(name = "f_us_daily")
public class FUsDaily {
    @Id
    private Long tid;

    /**
     * 股票代码
     */
    @Column(name = "ts_code")
    private String tsCode;

    /**
     * 交易日期
     */
    @Column(name = "trade_date")
    private String tradeDate;

    /**
     * 收盘价
     */
    private Float close;

    /**
     * 开盘价
     */
    private Float open;

    /**
     * 最高价
     */
    private Float high;

    /**
     * 最低价
     */
    private Float low;

    /**
     * 昨收价
     */
    @Column(name = "pre_close")
    private Float preClose;

    /**
     * 涨跌额
     */
    private Float change;

    /**
     * 涨跌幅
     */
    @Column(name = "pct_change")
    private Float pctChange;

    /**
     * 成交量
     */
    private Float vol;

    /**
     * 成交额
     */
    private Float amount;

    /**
     * 平均价
     */
    private Float vwap;

    /**
     * 换手率
     */
    @Column(name = "turnover_ratio")
    private Float turnoverRatio;

    /**
     * 总市值
     */
    @Column(name = "total_mv")
    private Float totalMv;

    /**
     * PE
     */
    private Float pe;

    /**
     * PB
     */
    private Float pb;

    public FUsDaily(Long tid, String tsCode, String tradeDate, Float close, Float open, Float high, Float low, Float preClose, Float change, Float pctChange, Float vol, Float amount, Float vwap, Float turnoverRatio, Float totalMv, Float pe, Float pb) {
        this.tid = tid;
        this.tsCode = tsCode;
        this.tradeDate = tradeDate;
        this.close = close;
        this.open = open;
        this.high = high;
        this.low = low;
        this.preClose = preClose;
        this.change = change;
        this.pctChange = pctChange;
        this.vol = vol;
        this.amount = amount;
        this.vwap = vwap;
        this.turnoverRatio = turnoverRatio;
        this.totalMv = totalMv;
        this.pe = pe;
        this.pb = pb;
    }

    public FUsDaily() {
        super();
    }

    /**
     * @return tid
     */
    public Long getTid() {
        return tid;
    }

    /**
     * @param tid
     */
    public void setTid(Long tid) {
        this.tid = tid;
    }

    /**
     * 获取股票代码
     *
     * @return ts_code - 股票代码
     */
    public String getTsCode() {
        return tsCode;
    }

    /**
     * 设置股票代码
     *
     * @param tsCode 股票代码
     */
    public void setTsCode(String tsCode) {
        this.tsCode = tsCode;
    }

    /**
     * 获取交易日期
     *
     * @return trade_date - 交易日期
     */
    public String getTradeDate() {
        return tradeDate;
    }

    /**
     * 设置交易日期
     *
     * @param tradeDate 交易日期
     */
    public void setTradeDate(String tradeDate) {
        this.tradeDate = tradeDate;
    }

    /**
     * 获取收盘价
     *
     * @return close - 收盘价
     */
    public Float getClose() {
        return close;
    }

    /**
     * 设置收盘价
     *
     * @param close 收盘价
     */
    public void setClose(Float close) {
        this.close = close;
    }

    /**
     * 获取开盘价
     *
     * @return open - 开盘价
     */
    public Float getOpen() {
        return open;
    }

    /**
     * 设置开盘价
     *
     * @param open 开盘价
     */
    public void setOpen(Float open) {
        this.open = open;
    }

    /**
     * 获取最高价
     *
     * @return high - 最高价
     */
    public Float getHigh() {
        return high;
    }

    /**
     * 设置最高价
     *
     * @param high 最高价
     */
    public void setHigh(Float high) {
        this.high = high;
    }

    /**
     * 获取最低价
     *
     * @return low - 最低价
     */
    public Float getLow() {
        return low;
    }

    /**
     * 设置最低价
     *
     * @param low 最低价
     */
    public void setLow(Float low) {
        this.low = low;
    }

    /**
     * 获取昨收价
     *
     * @return pre_close - 昨收价
     */
    public Float getPreClose() {
        return preClose;
    }

    /**
     * 设置昨收价
     *
     * @param preClose 昨收价
     */
    public void setPreClose(Float preClose) {
        this.preClose = preClose;
    }

    /**
     * 获取涨跌额
     *
     * @return change - 涨跌额
     */
    public Float getChange() {
        return change;
    }

    /**
     * 设置涨跌额
     *
     * @param change 涨跌额
     */
    public void setChange(Float change) {
        this.change = change;
    }

    /**
     * 获取涨跌幅
     *
     * @return pct_change - 涨跌幅
     */
    public Float getPctChange() {
        return pctChange;
    }

    /**
     * 设置涨跌幅
     *
     * @param pctChange 涨跌幅
     */
    public void setPctChange(Float pctChange) {
        this.pctChange = pctChange;
    }

    /**
     * 获取成交量
     *
     * @return vol - 成交量
     */
    public Float getVol() {
        return vol;
    }

    /**
     * 设置成交量
     *
     * @param vol 成交量
     */
    public void setVol(Float vol) {
        this.vol = vol;
    }

    /**
     * 获取成交额
     *
     * @return amount - 成交额
     */
    public Float getAmount() {
        return amount;
    }

    /**
     * 设置成交额
     *
     * @param amount 成交额
     */
    public void setAmount(Float amount) {
        this.amount = amount;
    }

    /**
     * 获取平均价
     *
     * @return vwap - 平均价
     */
    public Float getVwap() {
        return vwap;
    }

    /**
     * 设置平均价
     *
     * @param vwap 平均价
     */
    public void setVwap(Float vwap) {
        this.vwap = vwap;
    }

    /**
     * 获取换手率
     *
     * @return turnover_ratio - 换手率
     */
    public Float getTurnoverRatio() {
        return turnoverRatio;
    }

    /**
     * 设置换手率
     *
     * @param turnoverRatio 换手率
     */
    public void setTurnoverRatio(Float turnoverRatio) {
        this.turnoverRatio = turnoverRatio;
    }

    /**
     * 获取总市值
     *
     * @return total_mv - 总市值
     */
    public Float getTotalMv() {
        return totalMv;
    }

    /**
     * 设置总市值
     *
     * @param totalMv 总市值
     */
    public void setTotalMv(Float totalMv) {
        this.totalMv = totalMv;
    }

    /**
     * 获取PE
     *
     * @return pe - PE
     */
    public Float getPe() {
        return pe;
    }

    /**
     * 设置PE
     *
     * @param pe PE
     */
    public void setPe(Float pe) {
        this.pe = pe;
    }

    /**
     * 获取PB
     *
     * @return pb - PB
     */
    public Float getPb() {
        return pb;
    }

    /**
     * 设置PB
     *
     * @param pb PB
     */
    public void setPb(Float pb) {
        this.pb = pb;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", tid=").append(tid);
        sb.append(", tsCode=").append(tsCode);
        sb.append(", tradeDate=").append(tradeDate);
        sb.append(", close=").append(close);
        sb.append(", open=").append(open);
        sb.append(", high=").append(high);
        sb.append(", low=").append(low);
        sb.append(", preClose=").append(preClose);
        sb.append(", change=").append(change);
        sb.append(", pctChange=").append(pctChange);
        sb.append(", vol=").append(vol);
        sb.append(", amount=").append(amount);
        sb.append(", vwap=").append(vwap);
        sb.append(", turnoverRatio=").append(turnoverRatio);
        sb.append(", totalMv=").append(totalMv);
        sb.append(", pe=").append(pe);
        sb.append(", pb=").append(pb);
        sb.append("]");
        return sb.toString();
    }
}